{% extends 'base.html' %}
{% block main_window %}
      <!-- Main window -->
      <div class="main_container" id="forms_page">
        <div class="row-fluid">
          <ul class="breadcrumb">
            <li><a href="#">Home</a> <span class="divider">/</span></li>
            <li><a href="#">Features</a> <span class="divider">/</span></li>
            <li class="active">Blog</li>
          </ul>
          <h2 class="heading">
                Blog
                <div class="btn-group pull-right">
                  <button class="btn"><i class="icon-download-alt"></i> Export</button>
                  <button class="btn"><i class="icon-envelope"></i> Email</button>
                  <button class="btn"><i class="icon-cog"></i> Settings</button>
                </div>
          </h2>
        </div>
        <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-list-alt"></i><h5>博文发布</h5>
              <div class="widget-buttons">
                  <a href="#" data-title="Collapse" data-collapsed="false" class="tip collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>
            <div class="widget-body">
              <div class="widget-forms clearfix">
                <form class="form-horizontal" id="blog" method="post" action="/blog_up/">
                    {% csrf_token %}
                  <div class="control-group">
                    <label class="control-label">博文主题：</label>
                      <div class="controls">
                        <input class="span7" type="text" name="title" placeholder="title">
                      <!--<span class="help-inline">Helpful text here.</span>-->
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label">博文内容：</label>
                      <div class="controls">
                        <textarea class="span7" name="content" rows="5" style="height:100px;"></textarea>
                      </div>
                  </div>
                  <!--<div class="control-group">
                    <label class="control-label">时间日期：</label>
                      <div class="controls">
                        <div class="input-append date span5 datepicker datepicker-basic" data-date="12-02-2012" data-date-format="dd-mm-yyyy">
                          <input size="16" type="text" name="blog_date" value="12-02-2012">
                          <span class="add-on"><i class="icon-th"></i></span>
                        </div>
                      </div>
                  </div>-->  
                </form>
              </div>
            </div>
            <div class="widget-footer">
              <button class="btn btn-primary" form="blog"  type="submit">发布</button>
              <button class="btn" form="blog" type="reset">重置</button>
            </div>
          </div>
        </div>
      </div>
      <!-- /Main window -->
{% endblock %}
